home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_33418.txt < prev    next >
Text File  |  1991-02-27  |  1KB  |  35 lines

  1. -- card: 33418 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. For example, if the programmer uses the standard I/O function printf() and the string copy function strcpy(), then the appropriate declarations for these functions are referenced by inserting the following instructions at the top of the source file:
  11.  
  12.     # include <stdio.h>
  13.     # include <string.h>
  14.  
  15. These preprocessor directives* cause the declarations contained in the header files stdio.h and string.h to be inserted into the programmer's source file.  Chapter 8 describes several useful standard functions and their header files.
  16.  
  17. Most environments provide additional specialized libraries and header files, and allow programmers to define new ones.  The compiler must be alerted which of these non-standard libraries is in use, so that it can locate the needed functions when linking the completed program.
  18.  
  19. Think C provides header files declaring the Macintosh Toolbox ROM functions which enable the Macintosh interface, so they can be treated as a C function library.
  20.  
  21. -- part contents for background part 7
  22. ----- text -----
  23. 101
  24.  
  25. -- part contents for background part 29
  26. ----- text -----
  27. 52189
  28.  
  29. -- part contents for background part 27
  30. ----- text -----
  31. File inclusion
  32.  
  33. -- part contents for background part 20
  34. ----- text -----
  35. File inclusion - p175